package com.aotuman.ktcoroutineandroid.chapter.javademo;

import org.jetbrains.annotations.NotNull;

import kotlin.coroutines.Continuation;
import kotlin.coroutines.CoroutineContext;
import kotlin.coroutines.EmptyCoroutineContext;

public class MyContinuationImpl implements Continuation<Object> {

    private Object result;

    @Override
    public CoroutineContext getContext() {
        return EmptyCoroutineContext.INSTANCE;
    }

    @Override
    public void resumeWith(@NotNull Object String) {
       System.out.println("监听者接收到的结果："+ String);
    }
}